#ifndef FILEEXPLORERMODEL_H
#define FILEEXPLORERMODEL_H

#include <QAbstractTableModel>
#include <QDir>

class FileExplorerModel : public QAbstractTableModel
{
    Q_OBJECT

    QDir _currentPath;
public:
    explicit FileExplorerModel(QObject *parent = 0);

    int rowCount(const QModelIndex &parent = QModelIndex()) const override ;
    int columnCount(const QModelIndex &parent = QModelIndex()) const override;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
    bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override;
    Qt::ItemFlags flags(const QModelIndex & index) const override ;

    bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
    bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()) override;
};

#endif // FILEEXPLORERMODEL_H
